import request from '@/utils/request'

// 查询消防栓台账列表
export function listAfFirHydrant(query) {
  return request({
    url: '/security/afFirHydrant/list',
    method: 'get',
    params: query
  })
}

// 查询消防栓台账详细
export function getAfFirHydrant(id) {
  return request({
    url: '/security/afFirHydrant/' + id,
    method: 'get'
  })
}

// 新增消防栓台账
export function addAfFirHydrant(data) {
  return request({
    url: '/security/afFirHydrant',
    method: 'post',
    data: data
  })
}

// 修改消防栓台账
export function updateAfFirHydrant(data) {
  return request({
    url: '/security/afFirHydrant',
    method: 'put',
    data: data
  })
}

// 删除消防栓台账
export function delAfFirHydrant(id) {
  return request({
    url: '/security/afFirHydrant/' + id,
    method: 'delete'
  })
}
